<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>个人中心</title>
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="format-detection" content="telephone=no">
        <link rel="stylesheet" href="${ctxPath}/static/manage/css/x-admin.css" media="all">
        <script type="text/javascript" src="${ctxPath}/static/page/js/jquery-1.8.3.min.js"></script>
        <script type="text/javascript" src="${ctxPath}/static/page/js/comment.js"></script>
    </head>
    <body>
        <div class="x-nav">
            <span class="nav-breadcrumb">
                <a><cite>后台管理></cite></a>
                <a><cite>个人中心></cite></a>
                <a><cite>资料信息</cite></a>
             </span>
        </div>
        <div class="x-body">
            <div class="layui-form-item">
                <label class="layui-form-label">用户账号</label>
                <div class="layui-input-inline">
                    <input type="text" disabled="" class="layui-input" value="${currentUser.Account}">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">用户名称</label>
                <div class="layui-input-inline">
                    <input type="text" disabled="" class="layui-input" value="${currentUser.name}">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">用户性别</label>
                <div class="layui-input-inline">
                    <input type="text" disabled="" class="layui-input" value="${currentUser.sex == 0?'男':'女'}">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">联系电话</label>
                <div class="layui-input-inline">
                    <input type="text" disabled="" class="layui-input" value="${currentUser.Phone}">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">出生年月</label>
                <div class="layui-input-inline">
                    <input type="text" id="birthday" disabled="" value="${currentUser.Birthday}" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">用户等级</label>
                <div class="layui-input-inline">
                    <input type="text" disabled="" class="layui-input" value="${currentUser.Level == 1?'高级管理员':'普通管理员'}">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">用户邮箱</label>
                <div class="layui-input-inline">
                    <input type="text" disabled="" class="layui-input" value="${currentUser.Email}">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">用户状态</label>
                <div class="layui-input-inline">
                    <input type="text" disabled="" class="layui-input" value="正常状态">
                </div>
            </div>
        </div>
    </body>
    <script type="text/javascript">
        $(document).ready(function(){
            var birthday = $("#birthday").val();
            if(birthday != '' && birthday != null){
                $("#birthday").val(new Date(birthday).format("yyyy-MM-dd"));
            }
        });
    </script>

</html>